<?php slot('coursesNav', 'active') ?>
<div class="courses" id="wrapper">
	<?php include_partial('global/systemMessages', array('form' => $form))?>
	<div id="content">
		<div id="main">
			<form method="post" action="<?php echo url_for('courses/create') ?>" class="settings">
				<h4>
					<span>Add a Course at Harvard for Semester: 
						<?php echo $form['semester_id']->render() ?>
					</span>
				</h4>
				<fieldset>
					<label>Course Name</label>
					<?php echo $form['name']->render(array('class' => 'input-text'))?>
					<label>Subject</label>
					<?php echo $form['subject_id']->render() ?>
					<label>Course Number (such as A-23, 0410, 14b)</label>
					<?php echo $form['section']->render(array('class' => 'input-text', 'style' => 'width: 50px;'))?>
					<label>Instructor's Name</label>
					<?php echo $form['instructor_name']->render(array('class' => 'input-text'))?>
					<label>Instructor's Email (will not be used except in cases of copyright infringement)</label>
					<?php echo $form['instructor_email']->render(array('class' => 'input-text'))?>
				</fieldset>
				<h4>
					<span>Optional Information</span>
				</h4>
				<fieldset>
					<label>Course Description</label>
					<?php echo $form['description']->render() ?>
				</fieldset>
				<fieldset class="controls">
					<?php echo $form->renderHiddenFields() ?>
					
					<?php if($redirect):?>
						<input type="hidden" name="redirect" value="<?php echo $redirect?>"/>
					<?php endif?>
					
					<input type="submit" value="Add This Course" name="submit"/>
					<?php echo link_to('Cancel', 'groups/index')?>
				</fieldset>
			</form>
		</div>
		<div id="sidebar">

        </div>
	</div>
</div>
